package controller;

import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

import view.AppView;

public abstract class TwoTypeListener extends AbstractActionListener implements KeyListener {

	public TwoTypeListener(AppView view)
	{
		super(view);
	}

	@Override
	public void keyPressed(KeyEvent arg0)
	{
		if(arg0.getKeyCode() == KeyEvent.VK_ENTER)
		{
			myAction();
		}
	}

	@Override
	public void keyReleased(KeyEvent arg0) {}

	@Override
	public void keyTyped(KeyEvent arg0) {}
}